package com.huangjue.backend.mapper;

import com.huangjue.backend.entity.HomeworkReference;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

/**
 * 作业附件Mapper接口
 */
@Mapper
public interface HomeworkReferenceMapper {
    /** 根据ID查询附件 */
    HomeworkReference selectById(@Param("homeworkReferenceId") Integer homeworkReferenceId);

    /** 查询某作业的所有附件 */
    List<HomeworkReference> selectByHomeworkId(@Param("homeworkId") Integer homeworkId);

    /** 新增附件 */
    int insert(HomeworkReference homeworkReference);

    /** 删除附件 */
    int deleteById(@Param("homeworkReferenceId") Integer homeworkReferenceId);
} 